import { createApp } from 'vue'
import ElementPlus from 'element-plus'
import router from './router/index'
import { setupStore } from "@/store";
import App from './App.vue'
import {setupPermission} from '@/plugins/permission'
// import {setupMicro} from '@/plugins/micro'
// import start from './micro-app/main'
import './micro-app/main'

// import "element-plus/theme-chalk/dark/css-vars.css";
import 'element-plus/dist/index.css'
import './assets/styles/base.css'
import './styles/index.scss'

const app = createApp(App, {
  // start
})


// 全局注册 状态管理(store)
setupStore(app);
// 动态创建路由
setupPermission(app)
// 动态创建子应用信息
// setupMicro(app)

app.use(ElementPlus)
app.use(router)

app.mount('#root')